/<template>
  <div>
   <van-nav-bar
  title="标题"
  left-text="返回"
  right-text="按钮"
  left-arrow
  @click-left="onClickLeft"
  @click-right="onClickRight"
/>
<Swiper></Swiper>
<List></List>
  </div>
</template>

<script>
import Vue from 'vue';
import { NavBar,Toast } from 'vant';
import Swiper from "../page/Swiper.vue"
import List from "../page/List.vue"
Vue.use(NavBar);
export default {
    components:{Swiper,List},
 methods: {
    onClickLeft() {
      Toast('返回');
    },
    onClickRight() {
      Toast('按钮');
    },
  },
}
</script>

<style>

</style>